<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>createWithSourceParams</title>
    <link href="../../../../styles/style.css" rel="Stylesheet">
    <script type="text/javascript" src="../../../../scripts/navigationLoader.js" async="async"></script>
    <script type="text/javascript" src="../../../../scripts/platformContentHandler.js" async="async"></script>
    <script type="text/javascript" src="../../../../scripts/sourceset_dependencies.js" async="async"></script>
    <script type="text/javascript" src="../../../../scripts/clipboard.js" async="async"></script>
    <link href="../../../../styles/jetbrains-mono.css" rel="Stylesheet">
    <script>var pathToRoot = "../../../../";</script>
  </head>
  <body>
    <div id="container">
      <div id="leftColumn">
        <div id="logo"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="searchBar"></div>
        <script type="text/javascript" src="../../../../scripts/pages.js"></script>
        <script type="text/javascript" src="../../../../scripts/main.js"></script>
        <div id="content" pageIds="com.stripe.android.model/ConfirmPaymentIntentParams.Companion/createWithSourceParams/#com.stripe.android.model.SourceParams#kotlin.String#kotlin.String#kotlin.Boolean?#kotlin.collections.Map[kotlin.String,kotlin.Any]?#com.stripe.android.model.ConfirmPaymentIntentParams.Shipping?/PointingToDeclaration/">
          <div class="breadcrumbs">//<a href="../../../index.html">stripe</a>/<a href="../../index.html">com.stripe.android.model</a>/<a href="../index.html">ConfirmPaymentIntentParams</a>/<a href="index.html">Companion</a>/<a href="create-with-source-params.html">createWithSourceParams</a></div>
          <div class="cover ">
            <h1 class="cover"><a data-name="createwithsourceparams"></a>createWithSourceParams</h1>
          </div>
<div class="divergent-group" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="brief-with-platform-tags"><div class="inner-brief-with-platform-tags"><div class="block"><div class="block">Create the parameters necessary for confirming a PaymentIntent with <a href="../../-source-params/index.html">SourceParams</a></div></div><h2 class=""><a data-name="parameters"></a>Parameters</h2><div data-togglable="Parameters"><div class="platform-hinted WithExtraAttributes" data-platform-hinted="data-platform-hinted" data-togglable="Parameters"><div class="content sourceset-depenent-content" data-active="" data-togglable=":stripe/main"><div data-togglable="Parameters"><div class="table" data-togglable="Parameters"><a data-name="com.stripe.android.model/ConfirmPaymentIntentParams.Companion/createWithSourceParams/#com.stripe.android.model.SourceParams#kotlin.String#kotlin.String#kotlin.Boolean?#kotlin.collections.Map[kotlin.String,kotlin.Any]?#com.stripe.android.model.ConfirmPaymentIntentParams.Shipping?/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>clientSecret</div><div class="title"><div data-togglable="Parameters">client secret from the PaymentIntent that is to be confirmed</div></div></div></div><a data-name="com.stripe.android.model/ConfirmPaymentIntentParams.Companion/createWithSourceParams/#com.stripe.android.model.SourceParams#kotlin.String#kotlin.String#kotlin.Boolean?#kotlin.collections.Map[kotlin.String,kotlin.Any]?#com.stripe.android.model.ConfirmPaymentIntentParams.Shipping?/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>returnUrl</div><div class="title"><div data-togglable="Parameters">the URL the customer should be redirected to after the authorization process</div></div></div></div><a data-name="com.stripe.android.model/ConfirmPaymentIntentParams.Companion/createWithSourceParams/#com.stripe.android.model.SourceParams#kotlin.String#kotlin.String#kotlin.Boolean?#kotlin.collections.Map[kotlin.String,kotlin.Any]?#com.stripe.android.model.ConfirmPaymentIntentParams.Shipping?/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>savePaymentMethod</div><div class="title"><div data-togglable="Parameters">Set to <code>true</code> to save this PaymentIntent’s source to the associated Customer, if the source is not already attached. This parameter only applies to the source passed in the same request or the current source attached to the PaymentIntent and must be specified again if a new source is added.</div></div></div></div><a data-name="com.stripe.android.model/ConfirmPaymentIntentParams.Companion/createWithSourceParams/#com.stripe.android.model.SourceParams#kotlin.String#kotlin.String#kotlin.Boolean?#kotlin.collections.Map[kotlin.String,kotlin.Any]?#com.stripe.android.model.ConfirmPaymentIntentParams.Shipping?/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>shipping</div><div class="title"><div data-togglable="Parameters">Optional. See <a href="../-shipping/index.html">Shipping</a>.</div></div></div></div><a data-name="com.stripe.android.model/ConfirmPaymentIntentParams.Companion/createWithSourceParams/#com.stripe.android.model.SourceParams#kotlin.String#kotlin.String#kotlin.Boolean?#kotlin.collections.Map[kotlin.String,kotlin.Any]?#com.stripe.android.model.ConfirmPaymentIntentParams.Shipping?/PointingToDeclaration/"></a><div class="table-row" data-filterable-current=":stripe/main" data-filterable-set=":stripe/main"><div class="platform-dependent-row keyValue"><div>sourceParams</div><div class="title"><div data-togglable="Parameters">params for the source that will be attached to this PaymentIntent</div></div></div></div></div></div></div></div></div></div>
<span class="pull-right"></span></div>

  <div class="main-subrow">
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":stripe/main"><div class="symbol "><div class="symbol monospace"><div class="block"><div class="block">@<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/index.html">JvmOverloads</a>()</div><div class="block">@<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-static/index.html">JvmStatic</a>()</div></div>fun <a href="create-with-source-params.html">createWithSourceParams</a>(sourceParams: <a href="../../-source-params/index.html">SourceParams</a>, clientSecret: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, returnUrl: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, savePaymentMethod: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a>?, extraParams: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html">Map</a>&lt;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html">String</a>, <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html">Any</a>&gt;?, shipping: <a href="../-shipping/index.html">ConfirmPaymentIntentParams.Shipping</a>?): <a href="../index.html">ConfirmPaymentIntentParams</a><span class="top-right-position"><span class="copy-icon"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path fill-rule="evenodd" clip-rule="evenodd" d="M5 4H15V16H5V4ZM17 7H19V18V20H17H8V18H17V7Z" fill="black"/>
                       </svg></span><div class="copy-popup-wrapper popup-to-left"><svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M18 9C18 14 14 18 9 18C4 18 0 14 0 9C0 4 4 0 9 0C14 0 18 4 18 9ZM14.2 6.2L12.8 4.8L7.5 10.1L5.3 7.8L3.8 9.2L7.5 13L14.2 6.2Z" fill="#4DBB5F"/>
</svg><span>Content copied to clipboard</span></div></span></div></div></div></div>
  </div>
</div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#container"><svg width="12" height="10" viewBox="0 0 12 10" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M11.3337 9.66683H0.666992L6.00033 3.66683L11.3337 9.66683Z" fill="black"/>
    <path d="M0.666992 0.333496H11.3337V1.66683H0.666992V0.333496Z" fill="black"/>
</svg></a></span><span>© 2020 Copyright</span><span class="pull-right"><span>Sponsored and developed by dokka</span><a href="https://github.com/Kotlin/dokka"><span class="padded-icon"><svg width="8" height="8" viewBox="0 0 8 8" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M8 0H2.3949L4.84076 2.44586L0 7.28662L0.713376 8L5.55414 3.15924L8 5.6051V0Z" fill="black"/>
</svg></span></a></span></div>
      </div>
    </div>
  </body>
</html>

